xm,xend: Add new option "change_home_server" to xm migrate
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Oct 2009 08:09:23 +0000 (09:09 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Oct 2009 08:09:23 +0000 (09:09 +0100)
commitb1fd365cece2833c767ee8f96c421ee32e467af5
tree9697a4c1ff1bb94d6d192b772daa3853149f5b1f
parent11a92ae1f0692109990da8e34e945c298afb4c6f
xm,xend: Add new option "change_home_server" to xm migrate

This patch adds a new option to xm migrate command.  A concept of the
option is inspired from XenServer/XenCenter.  The concept is "Change
home server (affinity)."  The option name is "change_home_server."

Currently, a config.sxp file of a managed domain is not migrated to a
destination server even if the migration of the managed domain
succeeds.  The config.sxp file is kept in a source server.

By the patch, the config.sxp file is migrated with the managed domain.
The config.sxp file is unregistered from the source server, then the
config.sxp file is registered to the destination server.

BTW, should the config.sxp file be always migrated without the option?
If the managed domain is migrated without the option, the managed
domains exist on both the source server and the destination server.
(Of course, the managed domain on the source server is "halted" state,
and the managed domain on the destination server is "running" state.)
Is it good that the managed domains with a same UUID exist on both
servers?  (In the patch, I added the option for compatible.)

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xm/migrate.py